import request from "../utils/request.js"

// 藏品记录
export function MyItem(data) {
	return request({
		url: "/item/myItem",
		data
	})
}
// 个人中心
export function Index(data) {
	return request({
		url: "/User/Index",
		data
	})
}

// 修改密码
export function UserPassLogin(data) {
	return request({
		url: "/User/UserPassLogin",
		method: 'post',
		data
	})
}




// 打赏
export function ShopReward(data) {
	return request({
		url: "/Assets/ShopReward",
		method: 'post',
		data
	})
}

//消费商打赏
export function ConsumerReward(data) {
	return request({
		url: "/Assets/ConsumerReward",
		method: 'post',
		data
	})
}
// 数据统计
export function DataStatic() {
	return request({
		url: "/Assets/DataStatic"
	})
}
// 修改支付密码
export function UserPassPay(data) {
	return request({
		url: "/User/UserPassPay",
		method: 'post',
		data
	})
}

/**
 * 邀请码
 */
export function UserQrcode(data = {}) {
	return request({
		url: "/User/UserQrcode",
		data
	})
}

//绑定推荐关系
export function BindRecommend(data) {
	return request({
		url: "/User/BindRecommend",
		method: 'post',
		data
	})
}

// 匹配订单
export function CarList(data) {
	return request({
		url: "/Car/CarList",
		data
	})
}

/**
 * 支付
 * @param {*} data 
 */
export function CarPay(data) {
	return request({
		url: "/Car/CarPay",
		method: 'post',
		data
	})
}

/**
 * 选择持仓天数
 * @param {*} data 
 */
export function ChooseDay(data) {
	return request({
		url: "/Car/ChooseDay",
		method: 'post',
		data
	})
}

/**
 * 取货
 * @param {*} data 
 */
export function PickUp(data) {
	return request({
		url: "/Car/PickUp",
		method: 'post',
		data
	})
}

/**
 * 上架
 * @param {*} data 
 */
export function OrderShelf(data) {
	return request({
		url: "/Car/OrderShelf",
		method: 'post',
		data
	})
}


// 兑换
export function UserExchange(data) {
	return request({
		url: "/User/UserExchange",
		method: 'post',
		data
	})
}

// 兑换
export function UserExchange1() {
	return request({
		url: "/User/UserExchange"
	})
}

//提现
export function Withdraw(data) {
	return request({
		url: "/Assets/Withdraw",
		method: 'post',
		data
	})
}

//修改银行卡
export function UserBank(data) {
	return request({
		url: "/User/UserBank",
		method: 'post',
		data
	})
}

//银行卡
export function GetUserBank() {
	return request({
		url: "/User/UserBank"
	})
}

/**
 *我的团队 
 */
export function UserTeam() {
	return request({
		url: "/User/UserTeam"
	})
}

/**
 *我的收益
 */
export function Assets() {
	return request({
		url: "/Finance/Assets"
	})
}

/**
 *资金明细
 */
export function FinanceList(data) {
	return request({
		url: "/Finance/FinanceList",
		data
	})
}

/**
 *页面判断是否可以开盲盒 
 */
export function checkTodayCanRelease() {
	return request({
		url: "/finance/checkTodayCanRelease"
	})
}


/**
 *开盲盒 
 */
export function getRelease(data) {
	return request({
		url: "/finance/getRelease",
		method: 'post',
		data
	})
}

/**
 *释放明细
 */
export function releaseList(data) {
	return request({
		url: "/Finance/releaseList",
		data
	})
}

/**
 *加速释放明细
 */
export function fastReleaseList(data) {
	return request({
		url: "/Finance/fastReleaseList",
		data
	})
}


/**
 * 反馈
 */
export function FeedBackAdd(data) {
	return request({
		url: "/User/FeedBackAdd",
		method: "post",
		data
	})
}

export function FeedBackList() {
	return request({
		url: "/User/FeedBackList"
	})
}

/**
 * 详情
 * @param {*} data 
 */
export function FeedBackDetail(data) {
	return request({
		url: "/User/FeedBackDetail",
		data
	})
}

/**
 *转账 
 */
export function UserTransfer(data) {
	return request({
		url: "/User/UserTransfer",
		method: 'post',
		data
	})
}

/**
 * 商家申请页面数据
 */
export function ShopApply() {
	return request({
		url: "/User/ShopApply"
	})
}

/**
 * 商家申请
 */
export function ShopApplyPost(data) {
	return request({
		url: "/User/ShopApply",
		method: 'post',
		data
	})
}

/**
 * 获取省市区
 */
export function getShopArea(data) {
	return request({
		url: "/Goods/getShopArea",
		data
	})
}


/**
 * 互转明细
 */

export function TransferList(data) {
	return request({
		url: "/Finance/TransferList",
		data
	})
}



/**
 * 消费商申请
 */
export function ConsumerApply(data) {
	return request({
		url: "/User/ConsumerApply",
		method: 'post',
		data
	})
}


/**
 * 运营商申请
 */
export function ServiceApplyPost(data) {
	return request({
		url: "/User/ServiceApply",
		method: 'post',
		data
	})
}


/**
 * 运营商申请
 */
export function ServiceApply() {
	return request({
		url: "/User/ServiceApply"
	})
}


/**
 * 运营商申请
 */
export function ServiceList(data) {
	return request({
		url: "/User/ServiceList",
		data
	})
}

/**
 * 区域商家
 */
export function ShopTeam() {
	return request({
		url: "/User/ShopTeam"
	})
}

/**
 * 区域商家详情
 */
export function UserBurn(data) {
	return request({
		url: "/User/UserBurn",
		data
	})
}

/**
 * 我的商家
 */
export function ShopDirect() {
	return request({
		url: "/User/ShopDirect"
	})
}

/**
 * 我的商家信息
 */
export function ShopDetail(data) {
	return request({
		url: "/User/ShopDetail",
		data
	})
}

/**
 * 我的商家(通过，驳回)
 */
export function ShopVerify(data) {
	return request({
		url: "/User/ShopVerify",
		method: 'post',
		data
	})
}

/**
 * 退货
 */
export function RefundApply() {
	return request({
		url: "/Order/RefundApply"
	})
}


/**
 * 退货
 */
export function OrderRefund(data) {
	return request({
		url: "/Order/OrderRefund",
		method: 'post',
		data
	})
}

//充值
export function Recharge(data) {
	return request({
		url: "/Finance/Recharge",
		method: 'post',
		data
	})
}

//商家信息
export function ShopInfo() {
	return request({
		url: "/User/ShopInfo"
	})
}

//绑定供应商
export function BindSupplier(data) {
	return request({
		url: "/User/BindSupplier",
		method: 'post',
		data
	})
}

//线下商家
export function OfflineApply() {
	return request({
		url: "/User/OfflineApply"
	})
}

//线下商家提交
export function OfflineApplySub(data) {
	return request({
		url: "/User/OfflineApply",
		method: 'post',
		data
	})
}

/**
 *兑换 
 */
export function exchange(data) {
	return request({
		url: "/assets/exchange",
		method: 'post',
		data
	})
}

/**
 *兑换记录
 */
export function getexchange(data) {
	return request({
		url: "/assets/getexchange",
		data
	})
}

/**
 * 修改昵称
 * @param {Object} data
 */
export function changeName(data) {
	return request({
		url: "/user/changeName",
		method: "post",
		data
	})
}

/**
 * 获取聊天记录
 * @param {Object} data
 */
export function getChat(data) {
	return request({
		url: "/chat/getChat",
		data
	})
}

/**
 * 发送聊天数据
 * @param {Object} data
 */
export function sendMsg(data) {
	return request({
		url: "/chat/sendMsg",
		method: "post",
		data
	})
}

/**
 * 更新已读
 * @param {Object} data
 */
export function updateUnread(data) {
	return request({
		url: "/chat/updateUnread",
		method: "put",
		data
	})
}